<template>
    <downPayment ref="downPayment" type="3" :info="info" :disabled="disabled" :approvalInfo="approvalInfo"
                 :rejectFlows="rejectFlows" :expand="expand" @print="printEmit"/>
</template>
<script>
import downPayment from './downPayment'

export default {
    name: "d2",
    components: {downPayment},
    props: {
        info: {
            type: Object,
            default: () => {
            }
        },
        disabled: {
            type: Boolean,
            default: false
        },
        approvalInfo: {
            type: Object,
            default: () => {
            }
        },
        rejectFlows: {
            type: Object,
            default: () => {
            }
        },
        expand: {
            type: Boolean,
            default: false
        },
    },
    methods: {
        getParams(status) {
            return this.$refs.downPayment.getParams(status)
        },
        printEmit(data) {
            this.$emit('print', data)
        }
    }
}
</script>
